﻿@model MvcFrameStruct.Areas.User.Models.User

@{
    ViewBag.Title = "Update";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<link href="~/My97DatePicker/skin/WdatePicker.css" rel="stylesheet" type="text/css" />
<script src="~/My97DatePicker/calendar.js" type="text/javascript"></script>
<script src="~/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

@using(Html.BeginForm("Update","Index",FormMethod.Post))
{
     <input type="hidden" value="@Model.UserId" name="usid" />
    <table class="table table-bordered">
        <tr>
            <td class="text-right">
                @Html.LabelFor(m=>m.Name):
            </td>
            <td class="text-left">
                @Html.TextBoxFor(m=>m.Name)
            </td>
        </tr>
        <tr>
            <td class="text-right">
                @Html.LabelFor(m=>m.BirthDate)
            </td>
            <td class="text-left">
                @(new HtmlString(Html.CalendarFor(m => m.BirthDate, "yyyy-MM-dd"))) 
            </td>
        </tr>
        <tr>
            <td class="text-right">
                @Html.LabelFor(m=>m.UserSex)
            </td>
            <td>
                <span>男</span>  @Html.RadioButtonFor(m => m.UserSex, "true", Model.UserSex == true ? "checked" : "")
                <span>女</span>  @Html.RadioButtonFor(m => m.UserSex, "false")
            </td>
        </tr>
        <tr>
            <td colspan="2" class="text-center">
                <input type="submit" value="提交" />
            </td>
        </tr>
    </table>
}